package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_hanghai_move", desc = "大航海移动记录", autoSave = true, uploadCk = true, isCross = true)
public class LogHangHaiMove extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "当前港口")
    private int curPort;

    @FieldTypeAnnotation(desc = "目标港口")
    private int toPort;

    @FieldTypeAnnotation(desc = "到达时间")
    private Date finishTime;

    @FieldTypeAnnotation(desc = "类型，1移动，2到达，3加速，4强制移动。")
    private int type;

    public LogHangHaiMove(long userId, int activityId, int curPort, int toPort, Date finishTime, int type) {
        this.userId = userId;
        this.activityId = activityId;
        this.curPort = curPort;
        this.toPort = toPort;
        this.finishTime = finishTime;
        this.type = type;
    }

    public long getUserId() {
        return userId;
    }
}
